<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>Using Google Apps Provisioning - Zend Framework Manual</title>

    <link href="../css/shCore.css" rel="stylesheet" type="text/css" />
    <link href="../css/shThemeDefault.css" rel="stylesheet" type="text/css" />
    <link href="../css/styles.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Zend Framework</h1>
<h2>Programmer's Reference Guide</h2>
<ul>
    <li><a href="../en/zend.gdata.gapps.html">Inglês (English)</a></li>
    <li><a href="../pt-br/zend.gdata.gapps.html">Português Brasileiro (Brazilian Portuguese)</a></li>
</ul>
<table width="100%">
    <tr valign="top">
        <td width="85%">
            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="zend.gdata.spreadsheets.html">Using Google Spreadsheets</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="zend.gdata.html">Zend_Gdata</a></span><br />
                        <span class="home"><a href="manual.html">Programmer's Reference Guide</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="zend.gdata.gbase.html">Using Google Base</a></div>
                    </td>
                </tr>
            </table>
<hr />
<div id="zend.gdata.gapps" class="section"><div class="info"><h1 class="title">Using Google Apps Provisioning</h1></div>
    

    <p class="para">
        Google Apps is a service which allows domain administrators to offer
        their users managed access to Google services such as Mail, Calendar,
        and Docs &amp; Spreadsheets. The Provisioning <acronym class="acronym">API</acronym> offers a programmatic
        interface to configure this service. Specifically, this <acronym class="acronym">API</acronym> allows
        administrators the ability to create, retrieve, update, and delete
        user accounts, nicknames, groups, and email lists.
    </p>

    <p class="para">
        This library implements version 2.0 of the Provisioning <acronym class="acronym">API</acronym>. Access to
        your account via the Provisioning <acronym class="acronym">API</acronym> must be manually enabled for
        each domain using the Google Apps control panel. Only certain
        account types are able to enable this feature.
    </p>

    <p class="para">
        For more information on the Google Apps Provisioning <acronym class="acronym">API</acronym>, including
        instructions for enabling <acronym class="acronym">API</acronym> access, refer to the <a href="http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html" class="link external">&raquo; Provisioning
            <acronym class="acronym">API</acronym> V2.0 Reference</a>.
    </p>

    <blockquote class="note"><p><b class="note">Note</b>: <span class="info"><b>Authentication</b><br /></span>
        

        <p class="para">
            The Provisioning <acronym class="acronym">API</acronym> does not support authentication via AuthSub
            and anonymous access is not permitted. All <acronym class="acronym">HTTP</acronym> connections must
            be authenticated using ClientAuth authentication.
        </p>
    </p></blockquote>

    <div class="section" id="zend.gdata.gapps.domain"><div class="info"><h1 class="title">Setting the current domain</h1></div>
        

        <p class="para">
            In order to use the Provisioning <acronym class="acronym">API</acronym>, the domain being
            administered needs to be specified in all request <acronym class="acronym">URI</acronym>s. In order
            to ease development, this information is stored within both the
            Gapps service and query classes to use when constructing
            requests.
        </p>

        <div class="section" id="zend.gdata.gapps.domain.service"><div class="info"><h1 class="title">Setting the domain for the service class</h1></div>
            

            <p class="para">
                To set the domain for requests made by the service class,
                either call  <span class="methodname">setDomain()</span> or specify the domain
                when instantiating the service class. For example:
            </p>

            <pre class="programlisting brush: php">
$domain = &quot;example.com&quot;;
$gdata = new Zend_Gdata_Gapps($client, $domain);
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.domain.query"><div class="info"><h1 class="title">Setting the domain for query classes</h1></div>
            

            <p class="para">
                Setting the domain for requests made by query classes is
                similar to setting it for the service class-either call
                 <span class="methodname">setDomain()</span> or specify the domain when creating
                the query. For example:
            </p>

            <pre class="programlisting brush: php">
$domain = &quot;example.com&quot;;
$query = new Zend_Gdata_Gapps_UserQuery($domain, $arg);
</pre>


            <p class="para">
                When using a service class factory method to create a query,
                the service class will automatically set the query&#039;s domain to
                match its own domain. As a result, it is not necessary to
                specify the domain as part of the constructor arguments.
            </p>

            <pre class="programlisting brush: php">
$domain = &quot;example.com&quot;;
$gdata = new Zend_Gdata_Gapps($client, $domain);
$query = $gdata-&gt;newUserQuery($arg);
</pre>

        </div>
    </div>

    <div class="section" id="zend.gdata.gapps.users"><div class="info"><h1 class="title">Interacting with users</h1></div>
        

        <p class="para">
            Each user account on a Google Apps hosted domain is represented as
            an instance of <span class="classname">Zend_Gdata_Gapps_UserEntry</span>. This class provides
            access to all account properties including name, username,
            password, access rights, and current quota.
        </p>

        <div class="section" id="zend.gdata.gapps.users.creating"><div class="info"><h1 class="title">Creating a user account</h1></div>
            

            <p class="para">
                User accounts can be created by calling the
                 <span class="methodname">createUser()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;createUser(&#039;foo&#039;, &#039;Random&#039;, &#039;User&#039;, &#039;••••••••&#039;);
</pre>


            <p class="para">
                Users can also be created by instantiating UserEntry,
                providing a username, given name, family name, and password,
                then calling  <span class="methodname">insertUser()</span> on a service object to
                upload the entry to the server.
            </p>

            <pre class="programlisting brush: php">
$user = $gdata-&gt;newUserEntry();
$user-&gt;login = $gdata-&gt;newLogin();
$user-&gt;login-&gt;username = &#039;foo&#039;;
$user-&gt;login-&gt;password = &#039;••••••••&#039;;
$user-&gt;name = $gdata-&gt;newName();
$user-&gt;name-&gt;givenName = &#039;Random&#039;;
$user-&gt;name-&gt;familyName = &#039;User&#039;;
$user = $gdata-&gt;insertUser($user);
</pre>


            <p class="para">
                The user&#039;s password should normally be provided as cleartext.
                Optionally, the password can be provided as an <acronym class="acronym">SHA-1</acronym> digest if
                <strong class="command">login-&gt;passwordHashFunction</strong> is set to
                &#039;<span class="property">SHA-1</span>&#039;.
            </p>
        </div>

        <div class="section" id="zend.gdata.gapps.users.retrieving"><div class="info"><h1 class="title">Retrieving a user account</h1></div>
            

            <p class="para">
                Individual user accounts can be retrieved by calling the
                 <span class="methodname">retrieveUser()</span> convenience method. If the user is
                not found, <b><tt>NULL</tt></b> will be returned.
            </p>

            <pre class="programlisting brush: php">
$user = $gdata-&gt;retrieveUser(&#039;foo&#039;);

echo &#039;Username: &#039; . $user-&gt;login-&gt;userName . &quot;\n&quot;;
echo &#039;Given Name: &#039; . $user-&gt;name-&gt;givenName . &quot;\n&quot;;
echo &#039;Family Name: &#039; . $user-&gt;name-&gt;familyName . &quot;\n&quot;;
echo &#039;Suspended: &#039; . ($user-&gt;login-&gt;suspended ? &#039;Yes&#039; : &#039;No&#039;) . &quot;\n&quot;;
echo &#039;Admin: &#039; . ($user-&gt;login-&gt;admin ? &#039;Yes&#039; : &#039;No&#039;) . &quot;\n&quot;
echo &#039;Must Change Password: &#039; .
     ($user-&gt;login-&gt;changePasswordAtNextLogin ? &#039;Yes&#039; : &#039;No&#039;) . &quot;\n&quot;;
echo &#039;Has Agreed To Terms: &#039; .
     ($user-&gt;login-&gt;agreedToTerms ? &#039;Yes&#039; : &#039;No&#039;) . &quot;\n&quot;;
</pre>


            <p class="para">
                Users can also be retrieved by creating an
                instance of <span class="classname">Zend_Gdata_Gapps_UserQuery</span>, setting its username
                property to equal the username of the user that is to be
                retrieved, and calling  <span class="methodname">getUserEntry()</span> on a
                service object with that query.
            </p>

            <pre class="programlisting brush: php">
$query = $gdata-&gt;newUserQuery(&#039;foo&#039;);
$user = $gdata-&gt;getUserEntry($query);

echo &#039;Username: &#039; . $user-&gt;login-&gt;userName . &quot;\n&quot;;
echo &#039;Given Name: &#039; . $user-&gt;login-&gt;givenName . &quot;\n&quot;;
echo &#039;Family Name: &#039; . $user-&gt;login-&gt;familyName . &quot;\n&quot;;
echo &#039;Suspended: &#039; . ($user-&gt;login-&gt;suspended ? &#039;Yes&#039; : &#039;No&#039;) . &quot;\n&quot;;
echo &#039;Admin: &#039; . ($user-&gt;login-&gt;admin ? &#039;Yes&#039; : &#039;No&#039;) . &quot;\n&quot;
echo &#039;Must Change Password: &#039; .
     ($user-&gt;login-&gt;changePasswordAtNextLogin ? &#039;Yes&#039; : &#039;No&#039;) . &quot;\n&quot;;
echo &#039;Has Agreed To Terms: &#039; .
     ($user-&gt;login-&gt;agreedToTerms ? &#039;Yes&#039; : &#039;No&#039;) . &quot;\n&quot;;
</pre>


            <p class="para">
                If the specified user cannot be located a ServiceException
                will be thrown with an error code of
                <b><tt>Zend_Gdata_Gapps_Error::ENTITY_DOES_NOT_EXIST</tt></b>.
                ServiceExceptions will be covered in <a href="zend.gdata.gapps.html#zend.gdata.gapps.exceptions" class="link">the exceptions chapter</a>.
            </p>
        </div>

        <div class="section" id="zend.gdata.gapps.users.retrievingAll"><div class="info"><h1 class="title">Retrieving all users in a domain</h1></div>
            

            <p class="para">
                To retrieve all users in a domain, call the
                 <span class="methodname">retrieveAllUsers()</span> convenience method.
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveAllUsers();

foreach ($feed as $user) {
    echo &quot;  * &quot; . $user-&gt;login-&gt;username . &#039; (&#039; . $user-&gt;name-&gt;givenName .
        &#039; &#039; . $user-&gt;name-&gt;familyName . &quot;)\n&quot;;
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_UserFeed</span> object which
                holds each user on the domain.
            </p>

            <p class="para">
                Alternatively, call  <span class="methodname">getUserFeed()</span> with no
                options. Keep in mind that on larger
                domains this feed may be paged by the server. For more
                information on paging, see <a href="zend.gdata.introduction.html#zend.gdata.introduction.paging" class="link">the paging chapter</a>.
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;getUserFeed();

foreach ($feed as $user) {
    echo &quot;  * &quot; . $user-&gt;login-&gt;username . &#039; (&#039; . $user-&gt;name-&gt;givenName .
        &#039; &#039; . $user-&gt;name-&gt;familyName . &quot;)\n&quot;;
}
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.users.updating"><div class="info"><h1 class="title">Updating a user account</h1></div>
            

            <p class="para">
                The easiest way to update a user account is to retrieve the
                user as described in the previous sections, make any desired
                changes, then call  <span class="methodname">save()</span> on that user. Any
                changes made will be propagated to the server.
            </p>

            <pre class="programlisting brush: php">
$user = $gdata-&gt;retrieveUser(&#039;foo&#039;);
$user-&gt;name-&gt;givenName = &#039;Foo&#039;;
$user-&gt;name-&gt;familyName = &#039;Bar&#039;;
$user = $user-&gt;save();
</pre>


            <div class="section" id="zend.gdata.gapps.users.updating.resettingPassword"><div class="info"><h1 class="title">Resetting a user&#039;s password</h1></div>
                

                <p class="para">
                    A user&#039;s password can be reset to a new value by updating
                    the <strong class="command">login-&gt;password</strong> property.
                </p>

                <pre class="programlisting brush: php">
$user = $gdata-&gt;retrieveUser(&#039;foo&#039;);
$user-&gt;login-&gt;password = &#039;••••••••&#039;;
$user = $user-&gt;save();
</pre>


                <p class="para">
                    Note that it is not possible to recover a password in this
                    manner as stored passwords are not made available via the
                    Provisioning <acronym class="acronym">API</acronym> for security reasons.
                </p>
            </div>

            <div class="section" id="zend.gdata.gapps.users.updating.forcingPasswordChange"><div class="info"><h1 class="title">Forcing a user to change their password</h1></div>
                

                <p class="para">
                    A user can be forced to change their password at their
                    next login by setting the
                    <strong class="command">login-&gt;changePasswordAtNextLogin</strong> property to
                    <b><tt>TRUE</tt></b>.
                </p>

                <pre class="programlisting brush: php">
$user = $gdata-&gt;retrieveUser(&#039;foo&#039;);
$user-&gt;login-&gt;changePasswordAtNextLogin = true;
$user = $user-&gt;save();
</pre>


                <p class="para">
                    Similarly, this can be undone by setting the
                    <strong class="command">login-&gt;changePasswordAtNextLogin</strong> property to
                    <b><tt>FALSE</tt></b>.
                </p>
            </div>

            <div class="section" id="zend.gdata.gapps.users.updating.suspendingAccount"><div class="info"><h1 class="title">Suspending a user account</h1></div>
                

                <p class="para">
                    Users can be restricted from logging in without deleting
                    their user account by instead
                    <em class="emphasis">suspending</em> their user account.
                    Accounts can be suspended or restored by using the
                     <span class="methodname">suspendUser()</span> and
                     <span class="methodname">restoreUser()</span> convenience methods:
                </p>

                <pre class="programlisting brush: php">
$gdata-&gt;suspendUser(&#039;foo&#039;);
$gdata-&gt;restoreUser(&#039;foo&#039;);
</pre>


                <p class="para">
                    Alternatively, you can set the UserEntry&#039;s
                    <strong class="command">login-&gt;suspended</strong> property to
                    <b><tt>TRUE</tt></b>.
                </p>

                <pre class="programlisting brush: php">
$user = $gdata-&gt;retrieveUser(&#039;foo&#039;);
$user-&gt;login-&gt;suspended = true;
$user = $user-&gt;save();
</pre>


                <p class="para">
                    To restore the user&#039;s access, set the
                    <strong class="command">login-&gt;suspended</strong> property to
                    <b><tt>FALSE</tt></b>.
                </p>
            </div>

            <div class="section" id="zend.gdata.gapps.users.updating.grantingAdminRights"><div class="info"><h1 class="title">Granting administrative rights</h1></div>
                

                <p class="para">
                    Users can be granted the ability to administer your domain
                    by setting their <strong class="command">login-&gt;admin</strong> property to
                    <b><tt>TRUE</tt></b>.
                </p>

                <pre class="programlisting brush: php">
$user = $gdata-&gt;retrieveUser(&#039;foo&#039;);
$user-&gt;login-&gt;admin = true;
$user = $user-&gt;save();
</pre>


                <p class="para">
                    And as expected, setting a user&#039;s <strong class="command">login-&gt;admin</strong>
                    property to <b><tt>FALSE</tt></b> revokes their
                    administrative rights.
                </p>
            </div>
        </div>

        <div class="section" id="zend.gdata.gapps.users.deleting"><div class="info"><h1 class="title">Deleting user accounts</h1></div>
            

            <p class="para">
                Deleting a user account to which you already hold a UserEntry
                is a simple as calling  <span class="methodname">delete()</span> on that
                entry.
            </p>

            <pre class="programlisting brush: php">
$user = $gdata-&gt;retrieveUser(&#039;foo&#039;);
$user-&gt;delete();
</pre>


            <p class="para">
                If you do not have access to a UserEntry object for an
                account, use the  <span class="methodname">deleteUser()</span> convenience method.
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;deleteUser(&#039;foo&#039;);
</pre>

        </div>
    </div>

    <div class="section" id="zend.gdata.gapps.nicknames"><div class="info"><h1 class="title">Interacting with nicknames</h1></div>
        

        <p class="para">
            Nicknames serve as email aliases for existing users. Each nickname
            contains precisely two key properties: its name and its owner. Any
            email addressed to a nickname is forwarded to the user who owns
            that nickname.
        </p>

        <p class="para">
            Nicknames are represented as an instances of
            <span class="classname">Zend_Gdata_Gapps_NicknameEntry</span>.
        </p>

        <div class="section" id="zend.gdata.gapps.nicknames.creating"><div class="info"><h1 class="title">Creating a nickname</h1></div>
            

            <p class="para">
                Nicknames can be created by calling the
                 <span class="methodname">createNickname()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;createNickname(&#039;foo&#039;, &#039;bar&#039;);
</pre>


            <p class="para">
                Nicknames can also be created by instantiating NicknameEntry,
                providing the nickname with a name and an owner, then calling
                 <span class="methodname">insertNickname()</span> on a service object to upload
                the entry to the server.
            </p>

            <pre class="programlisting brush: php">
$nickname = $gdata-&gt;newNicknameEntry();
$nickname-&gt;login = $gdata-&gt;newLogin(&#039;foo&#039;);
$nickname-&gt;nickname = $gdata-&gt;newNickname(&#039;bar&#039;);
$nickname = $gdata-&gt;insertNickname($nickname);
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.nicknames.retrieving"><div class="info"><h1 class="title">Retrieving a nickname</h1></div>
            

            <p class="para">
                Nicknames can be retrieved by calling the
                 <span class="methodname">retrieveNickname()</span> convenience method. This will
                return <b><tt>NULL</tt></b> if a user is not found.
            </p>

            <pre class="programlisting brush: php">
$nickname = $gdata-&gt;retrieveNickname(&#039;bar&#039;);

echo &#039;Nickname: &#039; . $nickname-&gt;nickname-&gt;name . &quot;\n&quot;;
echo &#039;Owner: &#039; . $nickname-&gt;login-&gt;username . &quot;\n&quot;;
</pre>


            <p class="para">
                Individual nicknames can also be retrieved by creating an
                instance of <span class="classname">Zend_Gdata_Gapps_NicknameQuery</span>, setting its
                nickname property to equal the nickname that is to be
                retrieved, and calling  <span class="methodname">getNicknameEntry()</span> on a
                service object with that query.
            </p>

            <pre class="programlisting brush: php">
$query = $gdata-&gt;newNicknameQuery(&#039;bar&#039;);
$nickname = $gdata-&gt;getNicknameEntry($query);

echo &#039;Nickname: &#039; . $nickname-&gt;nickname-&gt;name . &quot;\n&quot;;
echo &#039;Owner: &#039; . $nickname-&gt;login-&gt;username . &quot;\n&quot;;
</pre>


            <p class="para">
                As with users, if no corresponding nickname is found a
                ServiceException will be thrown with an error code of
                <b><tt>Zend_Gdata_Gapps_Error::ENTITY_DOES_NOT_EXIST</tt></b>. Again, these
                will be discussed in <a href="zend.gdata.gapps.html#zend.gdata.gapps.exceptions" class="link">the exceptions chapter</a>.
            </p>
        </div>

        <div class="section" id="zend.gdata.gapps.nicknames.retrievingUser"><div class="info"><h1 class="title">Retrieving all nicknames for a user</h1></div>
            

            <p class="para">
                To retrieve all nicknames associated with a given user, call
                the convenience method  <span class="methodname">retrieveNicknames()</span>.
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveNicknames(&#039;foo&#039;);

foreach ($feed as $nickname) {
    echo &#039;  * &#039; . $nickname-&gt;nickname-&gt;name . &quot;\n&quot;;
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_NicknameFeed</span> object which
                holds each nickname associated with the specified user.
            </p>

            <p class="para">
                Alternatively, create a new <span class="classname">Zend_Gdata_Gapps_NicknameQuery</span>,
                set its username property to the desired user, and submit the
                query by calling  <span class="methodname">getNicknameFeed()</span> on a service
                object.
            </p>

            <pre class="programlisting brush: php">
$query = $gdata-&gt;newNicknameQuery();
$query-&gt;setUsername(&#039;foo&#039;);
$feed = $gdata-&gt;getNicknameFeed($query);

foreach ($feed as $nickname) {
    echo &#039;  * &#039; . $nickname-&gt;nickname-&gt;name . &quot;\n&quot;;
}
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.nicknames.retrievingAll"><div class="info"><h1 class="title">Retrieving all nicknames in a domain</h1></div>
            

            <p class="para">
                To retrieve all nicknames in a feed, simply call the
                convenience method  <span class="methodname">retrieveAllNicknames()</span>
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveAllNicknames();

foreach ($feed as $nickname) {
    echo &#039;  * &#039; . $nickname-&gt;nickname-&gt;name . &#039; =&gt; &#039; .
        $nickname-&gt;login-&gt;username . &quot;\n&quot;;
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_NicknameFeed</span> object which
                holds each nickname on the domain.
            </p>

            <p class="para">
                Alternatively, call  <span class="methodname">getNicknameFeed()</span> on a
                service object with no arguments.
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;getNicknameFeed();

foreach ($feed as $nickname) {
    echo &#039;  * &#039; . $nickname-&gt;nickname-&gt;name . &#039; =&gt; &#039; .
        $nickname-&gt;login-&gt;username . &quot;\n&quot;;
}
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.nicknames.deleting"><div class="info"><h1 class="title">Deleting a nickname</h1></div>
            

            <p class="para">
                Deleting a nickname to which you already hold a NicknameEntry
                for is a simple as calling  <span class="methodname">delete()</span> on that
                entry.
            </p>

            <pre class="programlisting brush: php">
$nickname = $gdata-&gt;retrieveNickname(&#039;bar&#039;);
$nickname-&gt;delete();
</pre>


            <p class="para">
                For nicknames which you do not hold a NicknameEntry for, use
                the  <span class="methodname">deleteNickname()</span> convenience method.
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;deleteNickname(&#039;bar&#039;);
</pre>

        </div>
    </div>

    <div class="section" id="zend.gdata.gapps.groups"><div class="info"><h1 class="title">Interacting with groups</h1></div>
        

        <p class="para">
            Google Groups allows people to post messages like an email list. Google
            is depreciating the Email List <acronym class="acronym">API</acronym>. Google Groups provides some neat
            features like nested groups and group owners. If you want to start
            a new email lst, it is advisable to use Google Groups instead.
            Google&#039;s Email List is not compatible with Google Groups. So if you
            create an email list, it will not show up as a group. The opposite is
            true as well.
        </p>

        <p class="para">
            Each group on a domain is represented as an instance of
            <span class="classname">Zend_Gdata_Gapps_GroupEntry</span>.
        </p>

        <div class="section" id="zend.gdata.gapps.groups.creating"><div class="info"><h1 class="title">Creating a group</h1></div>
            

            <p class="para">
                Groups can be created by calling the
                 <span class="methodname">createGroup()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;createGroup(&#039;friends&#039;, &#039;The Friends Group&#039;);
</pre>


            <p class="para">
                Groups can also be created by instantiating
                GroupEntry, providing a group id and name for the group,
                then calling  <span class="methodname">insertGroup()</span> on a service
                object to upload the entry to the server.
            </p>

            <pre class="programlisting brush: php">
$group = $gdata-&gt;newGroupEntry();

$properties[0] = $this-&gt;newProperty();
$properties[0]-&gt;name = &#039;groupId&#039;;
$properties[0]-&gt;value = &#039;friends&#039;;
$properties[1] = $this-&gt;newProperty();
$properties[1]-&gt;name = &#039;groupName&#039;;
$properties[1]-&gt;value = &#039;The Friends Group&#039;;

$group-&gt;property = $properties;

$group = $gdata-&gt;insertGroup($group);
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.groups.retrieveGroup"><div class="info"><h1 class="title">Retrieving an individual group</h1></div>
            

            <p class="para">
                To retrieve an individual group, call the
                 <span class="methodname">retrieveGroup()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$entry = $gdata-&gt;retrieveGroup(&#039;friends&#039;);

foreach ($entry-&gt;property as $p) {
    echo &quot;Property Name: &quot; . $p-&gt;name;
    echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_GroupEntry</span>
                object which holds the properties about the group.
            </p>

            <p class="para">
                Alternatively, create a new <span class="classname">Zend_Gdata_Gapps_GroupQuery</span>,
                set its groupId property to the desired group id, and
                submit the query by calling  <span class="methodname">getGroupEntry()</span>
                on a service object.
            </p>

            <pre class="programlisting brush: php">
$query = $gdata-&gt;newGroupQuery();
$query-&gt;setGroupId(&#039;friends&#039;);
$entry = $gdata-&gt;getGroupEntry($query);

foreach ($entry-&gt;property as $p) {
    echo &quot;Property Name: &quot; . $p-&gt;name;
    echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
}
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.groups.retrievingAll"><div class="info"><h1 class="title">Retrieving all groups in a domain</h1></div>
            

            <p class="para">
                To retrieve all groups in a domain, call the convenience
                method  <span class="methodname">retrieveAllGroups()</span>.
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveAllGroups();

foreach ($feed-&gt;entry as $entry) {
    foreach ($entry-&gt;property as $p) {
        echo &quot;Property Name: &quot; . $p-&gt;name;
        echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
    }
    echo &quot;\n\n&quot;;
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_GroupFeed</span>
                object which holds each group on the domain.
            </p>

            <p class="para">
                Alternatively, call  <span class="methodname">getGroupFeed()</span> on a
                service object with no arguments.
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;getGroupFeed();

foreach ($feed-&gt;entry as $entry) {
    foreach ($entry-&gt;property as $p) {
        echo &quot;Property Name: &quot; . $p-&gt;name;
        echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
    }
    echo &quot;\n\n&quot;;
}
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.groups.deleting"><div class="info"><h1 class="title">Deleting a group</h1></div>
            

            <p class="para">
                To delete a group, call the  <span class="methodname">deleteGroup()</span> convenience
                method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;deleteGroup(&#039;friends&#039;);
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.groups.updating"><div class="info"><h1 class="title">Updating a group</h1></div>
            

            <p class="para">
                Groups can be updated by calling the
                 <span class="methodname">updateGroup()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;updateGroup(&#039;group-id-here&#039;, &#039;Group Name Here&#039;);
</pre>


            <p class="para">
                The first parameter is required. The second, third and fourth parameter,
                representing the group name, group descscription, and email permission,
                respectively are optional. Setting any of these optional parameters
                to null will not update that item.
            </p>
        </div>

        <div class="section" id="zend.gdata.gapps.groups.retrieve"><div class="info"><h1 class="title">Retrieving all groups to which a person is a member</h1></div>
            

            <p class="para">
                To retrieve all groups to which a particular person is a
                member, call the  <span class="methodname">retrieveGroups()</span>
                convenience method:
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveGroups(&#039;baz@somewhere.com&#039;);

foreach ($feed-&gt;entry as $entry) {
    foreach ($entry-&gt;property as $p) {
        echo &quot;Property Name: &quot; . $p-&gt;name;
        echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
    }
    echo &quot;\n\n&quot;;
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_GroupFeed</span>
                object which holds each group associated with the specified member.
            </p>

            <p class="para">
                Alternatively, create a new <span class="classname">Zend_Gdata_Gapps_GroupQuery</span>,
                set its member property to the desired email address, and
                submit the query by calling  <span class="methodname">getGroupFeed()</span>
                on a service object.
            </p>

            <pre class="programlisting brush: php">
$query = $gdata-&gt;newGroupQuery();
$query-&gt;setMember(&#039;baz@somewhere.com&#039;);
$feed = $gdata-&gt;getGroupFeed($query);

foreach ($feed-&gt;entry as $entry) {
    foreach ($entry-&gt;property as $p) {
        echo &quot;Property Name: &quot; . $p-&gt;name;
        echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
    }
    echo &quot;\n\n&quot;;
}
</pre>

        </div>
    </div>

    <div class="section" id="zend.gdata.gapps.groupMembers"><div class="info"><h1 class="title">Interacting with group members</h1></div>
        

        <p class="para">
            Each member subscribed to a group is represented by an
            instance of <span class="classname">Zend_Gdata_Gapps_MemberEntry</span>.
            Through this class, individual recipients can be added and removed
            from groups.
        </p>

        <div class="section" id="zend.gdata.gapps.groupMembers.adding"><div class="info"><h1 class="title">Adding a member to a group</h1></div>
            

            <p class="para">
                To add a member to a group, simply call the
                 <span class="methodname">addMemberToGroup()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;addMemberToGroup(&#039;bar@somewhere.com&#039;, &#039;friends&#039;);
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.groupMembers.check"><div class="info"><h1 class="title">Check to see if member belongs to group</h1></div>
            

            <p class="para">
                To check to see if member belongs to group, simply call the
                 <span class="methodname">isMember()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$isMember = $gdata-&gt;isMember(&#039;bar@somewhere.com&#039;, &#039;friends&#039;);
var_dump($isMember);
</pre>


            <p class="para">
                The method returns a boolean value. If the member belongs to the
                group specified, the method returns true, else it returns false.
            </p>
        </div>

        <div class="section" id="zend.gdata.gapps.groupMembers.removing"><div class="info"><h1 class="title">Removing a member from a group</h1></div>
            

            <p class="para">
                To remove a member from a group, call the
                 <span class="methodname">removeMemberFromGroup()</span> convenience
                method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;removeMemberFromGroup(&#039;baz&#039;, &#039;friends&#039;);
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.groupMembers.retrieving"><div class="info"><h1 class="title">Retrieving the list of members to a group</h1></div>
            

            <p class="para">
                The convenience method  <span class="methodname">retrieveAllMembers()</span>
                can be used to retrieve the list of members of a group:
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveAllMembers(&#039;friends&#039;);

foreach ($feed as $member) {
    foreach ($member-&gt;property as $p) {
        echo &quot;Property Name: &quot; . $p-&gt;name;
        echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
    }
}
</pre>


            <p class="para">
                Alternatively, construct a new MemberQuery, set its groupId
                property to match the desired group id, and call
                 <span class="methodname">getMemberFeed()</span> on a service object.
            </p>

            <pre class="programlisting brush: php">
$query = $gdata-&gt;newMemberQuery();
$query-&gt;setGroupId(&#039;friends&#039;);
$feed = $gdata-&gt;getMemberFeed($query);

foreach ($feed as $member) {
    foreach ($member-&gt;property as $p) {
        echo &quot;Property Name: &quot; . $p-&gt;name;
        echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
    }
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_MemberFeed</span>
                object which holds each member for the selected group.
            </p>
        </div>
    </div>

    <div class="section" id="zend.gdata.gapps.groupOwners"><div class="info"><h1 class="title">Interacting with group owners</h1></div>
        

        <p class="para">
            Each owner associated with a group is represented by an
            instance of <span class="classname">Zend_Gdata_Gapps_OwnerEntry</span>.
            Through this class, individual owners can be added and removed
            from groups.
        </p>

        <div class="section" id="zend.gdata.gapps.groupOwners.adding"><div class="info"><h1 class="title">Adding an owner to a group</h1></div>
            

            <p class="para">
                To add an owner to a group, simply call the
                 <span class="methodname">addOwnerToGroup()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;addOwnerToGroup(&#039;bar@somewhere.com&#039;, &#039;friends&#039;);
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.groupOwners.retrieving"><div class="info"><h1 class="title">Retrieving the list of the owner of a group</h1></div>
            

            <p class="para">
                The convenience method  <span class="methodname">retrieveGroupOwners()</span>
                can be used to retrieve the list of the owners of a group:
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveGroupOwners(&#039;friends&#039;);

foreach ($feed as $owner) {
    foreach ($owner-&gt;property as $p) {
        echo &quot;Property Name: &quot; . $p-&gt;name;
        echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
    }
}
</pre>


            <p class="para">
                Alternatively, construct a new OwnerQuery, set its groupId
                property to match the desired group id, and call
                 <span class="methodname">getOwnerFeed()</span> on a service object.
            </p>

            <pre class="programlisting brush: php">
$query = $gdata-&gt;newOwnerQuery();
$query-&gt;setGroupId(&#039;friends&#039;);
$feed = $gdata-&gt;getOwnerFeed($query);

foreach ($feed as $owner) {
    foreach ($owner-&gt;property as $p) {
        echo &quot;Property Name: &quot; . $p-&gt;name;
        echo &quot;\nProperty Value: &quot; . $p-&gt;value . &quot;\n\n&quot;;
    }
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_OwnerFeed</span>
                object which holds each member for the selected group.
            </p>
        </div>

        <div class="section" id="zend.gdata.gapps.groupOwners.check"><div class="info"><h1 class="title">Check to see if an email is the owner of a group</h1></div>
            

            <p class="para">
                To check to see if an email is the owner of a group, simply call
                the  <span class="methodname">isOwner()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$isOwner = $gdata-&gt;isOwner(&#039;bar@somewhere.com&#039;, &#039;friends&#039;);
var_dump($isOwner);
</pre>


            <p class="para">
                The method returns a boolean value. If the email is the owner of
                the group specified, the method returns true, else it returns false.
            </p>
        </div>

        <div class="section" id="zend.gdata.gapps.groupOwners.removing"><div class="info"><h1 class="title">Removing an owner from a group</h1></div>
            

            <p class="para">
                To remove an owner from a group, call the
                 <span class="methodname">removeOwnerFromGroup()</span> convenience
                method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;removeOwnerFromGroup(&#039;baz@somewhere.com&#039;, &#039;friends&#039;);
</pre>

        </div>
    </div>

    <div class="section" id="zend.gdata.gapps.emailLists"><div class="info"><h1 class="title">Interacting with email lists</h1></div>
        

        <p class="para">
            Email lists allow several users to retrieve email addressed to a
            single email address. Users do not need to be a
            member of this domain in order to subscribe to an email list
            provided their complete email address (including domain) is used.
        </p>

        <p class="para">
            Each email list on a domain is represented as an instance of
            <span class="classname">Zend_Gdata_Gapps_EmailListEntry</span>.
        </p>

        <div class="section" id="zend.gdata.gapps.emailLists.creating"><div class="info"><h1 class="title">Creating an email list</h1></div>
            

            <p class="para">
                Email lists can be created by calling the
                 <span class="methodname">createEmailList()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;createEmailList(&#039;friends&#039;);
</pre>


            <p class="para">
                Email lists can also be created by instantiating
                EmailListEntry, providing a name for the list, then calling
                 <span class="methodname">insertEmailList()</span> on a service object to upload
                the entry to the server.
            </p>

            <pre class="programlisting brush: php">
$list = $gdata-&gt;newEmailListEntry();
$list-&gt;emailList = $gdata-&gt;newEmailList(&#039;friends&#039;);
$list = $gdata-&gt;insertEmailList($list);
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.emailList.retrieve"><div class="info"><h1 class="title">Retrieving all email lists to which a recipient is subscribed</h1></div>
            

            <p class="para">
                To retrieve all email lists to which a particular recipient is
                subscribed, call the  <span class="methodname">retrieveEmailLists()</span>
                convenience method:
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveEmailLists(&#039;baz@somewhere.com&#039;);

foreach ($feed as $list) {
    echo &#039;  * &#039; . $list-&gt;emailList-&gt;name . &quot;\n&quot;;
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_EmailListFeed</span> object
                which holds each email list associated with the specified recipient.
            </p>

            <p class="para">
                Alternatively, create a new <span class="classname">Zend_Gdata_Gapps_EmailListQuery</span>,
                set its recipient property to the desired email address, and
                submit the query by calling  <span class="methodname">getEmailListFeed()</span> on
                a service object.
            </p>

            <pre class="programlisting brush: php">
$query = $gdata-&gt;newEmailListQuery();
$query-&gt;setRecipient(&#039;baz@somewhere.com&#039;);
$feed = $gdata-&gt;getEmailListFeed($query);

foreach ($feed as $list) {
    echo &#039;  * &#039; . $list-&gt;emailList-&gt;name . &quot;\n&quot;;
}
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.emailLists.retrievingAll"><div class="info"><h1 class="title">Retrieving all email lists in a domain</h1></div>
            

            <p class="para">
                To retrieve all email lists in a domain, call the convenience
                method  <span class="methodname">retrieveAllEmailLists()</span>.
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveAllEmailLists();

foreach ($feed as $list) {
    echo &#039;  * &#039; . $list-&gt;emailList-&gt;name . &quot;\n&quot;;
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_EmailListFeed</span> object
                which holds each email list on the domain.
            </p>

            <p class="para">
                Alternatively, call  <span class="methodname">getEmailListFeed()</span> on a
                service object with no arguments.
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;getEmailListFeed();

foreach ($feed as $list) {
    echo &#039;  * &#039; . $list-&gt;emailList-&gt;name . &quot;\n&quot;;
}
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.emailList.deleting"><div class="info"><h1 class="title">Deleting an email list</h1></div>
            

            <p class="para">
                To delete an email list, call the  <span class="methodname">deleteEmailList()</span>
                convenience method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;deleteEmailList(&#039;friends&#039;);
</pre>

        </div>
    </div>

    <div class="section" id="zend.gdata.gapps.emailListRecipients"><div class="info"><h1 class="title">Interacting with email list recipients</h1></div>
        

        <p class="para">
            Each recipient subscribed to an email list is represented by an
            instance of <span class="classname">Zend_Gdata_Gapps_EmailListRecipient</span>. Through this
            class, individual recipients can be added and removed from email
            lists.
        </p>

        <div class="section" id="zend.gdata.gapps.emailListRecipients.adding"><div class="info"><h1 class="title">Adding a recipient to an email list</h1></div>
            

            <p class="para">
                To add a recipient to an email list, simply call the
                 <span class="methodname">addRecipientToEmailList()</span> convenience method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;addRecipientToEmailList(&#039;bar@somewhere.com&#039;, &#039;friends&#039;);
</pre>

        </div>

        <div class="section" id="zend.gdata.gapps.emailListRecipients.retrieving"><div class="info"><h1 class="title">Retrieving the list of subscribers to an email list</h1></div>
            

            <p class="para">
                The convenience method  <span class="methodname">retrieveAllRecipients()</span>
                can be used to retrieve the list of subscribers to an email list:
            </p>

            <pre class="programlisting brush: php">
$feed = $gdata-&gt;retrieveAllRecipients(&#039;friends&#039;);

foreach ($feed as $recipient) {
    echo &#039;  * &#039; . $recipient-&gt;who-&gt;email . &quot;\n&quot;;
}
</pre>


            <p class="para">
                Alternatively, construct a new EmailListRecipientQuery, set
                its emailListName property to match the desired email list,
                and call  <span class="methodname">getEmailListRecipientFeed()</span> on a service
                object.
            </p>

            <pre class="programlisting brush: php">
$query = $gdata-&gt;newEmailListRecipientQuery();
$query-&gt;setEmailListName(&#039;friends&#039;);
$feed = $gdata-&gt;getEmailListRecipientFeed($query);

foreach ($feed as $recipient) {
    echo &#039;  * &#039; . $recipient-&gt;who-&gt;email . &quot;\n&quot;;
}
</pre>


            <p class="para">
                This will create a <span class="classname">Zend_Gdata_Gapps_EmailListRecipientFeed</span>
                object which holds each recipient for the selected email list.
            </p>
        </div>

        <div class="section" id="zend.gdata.gapps.emailListRecipients.removing"><div class="info"><h1 class="title">Removing a recipient from an email list</h1></div>
            

            <p class="para">
                To remove a recipient from an email list, call the
                 <span class="methodname">removeRecipientFromEmailList()</span> convenience
                method:
            </p>

            <pre class="programlisting brush: php">
$gdata-&gt;removeRecipientFromEmailList(&#039;baz@somewhere.com&#039;, &#039;friends&#039;);
</pre>

        </div>
    </div>

    <div class="section" id="zend.gdata.gapps.exceptions"><div class="info"><h1 class="title">Handling errors</h1></div>
        

        <p class="para">
            In addition to the standard suite of exceptions thrown by
            <span class="classname">Zend_Gdata</span>, requests using the Provisioning
            <acronym class="acronym">API</acronym> may also throw a
            <span class="classname">Zend_Gdata_Gapps_ServiceException</span>. These exceptions
            indicate that a <acronym class="acronym">API</acronym> specific error occurred which prevents the
            request from completing.
        </p>

        <p class="para">
            Each ServiceException instance may hold one or more Error objects.
            Each of these objects contains an error code, reason, and
            (optionally) the input which triggered the exception. A complete
            list of known error codes is provided in Zend Framework&#039;s <acronym class="acronym">API</acronym>
            documentation under <span class="classname">Zend_Gdata_Gapps_Error</span>. Additionally, the
            authoritative error list is available online at <a href="http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html#appendix_d" class="link external">&raquo; Google
            Apps Provisioning <acronym class="acronym">API</acronym> V2.0 Reference: Appendix D</a>.
        </p>

        <p class="para">
            While the complete list of errors received is available within
            ServiceException as an array by calling  <span class="methodname">getErrors()</span>,
            often it is convenient to know if one specific error occurred. For
            these cases the presence of an error can be determined by calling
             <span class="methodname">hasError()</span>.
        </p>

        <p class="para">
            The following example demonstrates how to detect if a requested
            resource doesn&#039;t exist and handle the fault gracefully:
        </p>

        <pre class="programlisting brush: php">
function retrieveUser ($username) {
    $query = $gdata-&gt;newUserQuery($username);
    try {
        $user = $gdata-&gt;getUserEntry($query);
    } catch (Zend_Gdata_Gapps_ServiceException $e) {
        // Set the user to null if not found
        if ($e-&gt;hasError(Zend_Gdata_Gapps_Error::ENTITY_DOES_NOT_EXIST)) {
            $user = null;
        } else {
            throw $e;
        }
    }
    return $user;
}
</pre>

    </div>
</div>
        <hr />

            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="zend.gdata.spreadsheets.html">Using Google Spreadsheets</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="zend.gdata.html">Zend_Gdata</a></span><br />
                        <span class="home"><a href="manual.html">Programmer's Reference Guide</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="zend.gdata.gbase.html">Using Google Base</a></div>
                    </td>
                </tr>
            </table>
</td>
        <td style="font-size: smaller;" width="15%"> <style type="text/css">
#leftbar {
	float: left;
	width: 186px;
	padding: 5px;
	font-size: smaller;
}
ul.toc {
	margin: 0px 5px 5px 5px;
	padding: 0px;
}
ul.toc li {
	font-size: 85%;
	margin: 1px 0 1px 1px;
	padding: 1px 0 1px 11px;
	list-style-type: none;
	background-repeat: no-repeat;
	background-position: center left;
}
ul.toc li.header {
	font-size: 115%;
	padding: 5px 0px 5px 11px;
	border-bottom: 1px solid #cccccc;
	margin-bottom: 5px;
}
ul.toc li.active {
	font-weight: bold;
}
ul.toc li a {
	text-decoration: none;
}
ul.toc li a:hover {
	text-decoration: underline;
}
</style>
 <ul class="toc">
  <li class="header home"><a href="manual.html">Programmer's Reference Guide</a></li>
  <li class="header up"><a href="manual.html">Programmer's Reference Guide</a></li>
  <li class="header up"><a href="reference.html">Zend Framework Reference</a></li>
  <li class="header up"><a href="zend.gdata.html">Zend_Gdata</a></li>
  <li><a href="zend.gdata.introduction.html">Introduction</a></li>
  <li><a href="zend.gdata.authsub.html">Authenticating with AuthSub</a></li>
  <li><a href="zend.gdata.books.html">Using the Book Search Data API</a></li>
  <li><a href="zend.gdata.clientlogin.html">Authenticating with ClientLogin</a></li>
  <li><a href="zend.gdata.calendar.html">Using Google Calendar</a></li>
  <li><a href="zend.gdata.docs.html">Using Google Documents List Data API</a></li>
  <li><a href="zend.gdata.health.html">Using Google Health</a></li>
  <li><a href="zend.gdata.spreadsheets.html">Using Google Spreadsheets</a></li>
  <li class="active"><a href="zend.gdata.gapps.html">Using Google Apps Provisioning</a></li>
  <li><a href="zend.gdata.gbase.html">Using Google Base</a></li>
  <li><a href="zend.gdata.photos.html">Using Picasa Web Albums</a></li>
  <li><a href="zend.gdata.youtube.html">Using the YouTube Data API</a></li>
  <li><a href="zend.gdata.exception.html">Catching Gdata Exceptions</a></li>
 </ul>
 </td>
    </tr>
</table>

<script type="text/javascript" src="../js/shCore.js"></script>
<script type="text/javascript" src="../js/shAutoloader.js"></script>
<script type="text/javascript" src="../js/main.js"></script>

</body>
</html>